﻿<%@ Page Title="Stock Dealer Intranet" Language="C#" MasterPageFile="~/MasterPage/Master.Master" AutoEventWireup="true" CodeBehind="wFrmStockDealerIntranet.aspx.cs" Inherits="Crosland.Automotriz.Web.Vehiculos.wFrmStockDealerIntranet" %>
<%@ Register assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxEditors" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.ASPxPivotGrid.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxPivotGrid" tagprefix="dx" %>

<%@ Register assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxRoundPanel" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxPanel" tagprefix="dx" %>

<%@ Register assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxPopupControl" tagprefix="dx" %>

<%@ Register assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxGridView" tagprefix="dx" %>

<asp:Content ID="Content1" ContentPlaceHolderID="cphMain" runat="server">

 <script type="text/javascript">

     function MostrarAlerta() {
         popupErrores.Show();
     }

    </script>

    <div class="main-header" style="width:100%;">
        <div class="main-titulo" style="text-align: left">
            Venta Interna - Stock Dealer</div>
    </div>

    <div style="padding: 10px">

                      

<table width="100%">
                          <tr>
                              <td width="115px">
                      <dx:ASPxButton ID="btnConsultar" runat="server" 
                          CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                          CssPostfix="Office2010Blue" 
                          SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Text="Consultar" 
                                      Width="100px" onclick="btnConsultar_Click">
                          <Image Url="~/Images/search.png">
                          </Image>
                      </dx:ASPxButton>
                              </td>
                              <td>
                                  <dx:ASPxButton ID="btnSalir" runat="server" 
                                      CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                      CssPostfix="Office2010Blue" onclick="btnSalir_Click" 
                                      SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Text="Salir" 
                                      Width="100px">
                                      <Image Url="~/Images/logout.png">
                                      </Image>
                                  </dx:ASPxButton>
                              </td>
                          </tr>
                          <tr>
                              <td colspan="2">
                                  <hr />
                              </td>
                          </tr>
                      </table>

                          <table width="100%">
                              <tr>
                                  <td width="810" valign="top">
                                      <dx:ASPxRoundPanel ID="ASPxRoundPanel1" runat="server" 
                                          CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                          CssPostfix="Office2010Blue" EnableDefaultAppearance="False" 
                                          GroupBoxCaptionOffsetX="6px" GroupBoxCaptionOffsetY="-19px" 
                                          HeaderText="Filtros" 
                                          SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Width="800px">
                                          <ContentPaddings PaddingBottom="10px" PaddingLeft="9px" PaddingRight="11px" 
                                              PaddingTop="10px" />
                                          <HeaderStyle>
                                          <Paddings PaddingBottom="6px" PaddingLeft="9px" PaddingRight="11px" 
                                              PaddingTop="3px" />
                                          </HeaderStyle>
                                          <PanelCollection>
                                              <dx:PanelContent runat="server" SupportsDisabledAttribute="True">
                                                  <table border="0" cellpadding="5" cellspacing="0" width="100%">
                                                      <tr>
                                                          <td style="width: 33px">
                                                              <asp:Label ID="Label1" runat="server" ForeColor="Black" Text="Año:"></asp:Label>
                                                          </td>
                                                          <td width="110">
                                                              <dx:ASPxComboBox ID="cboAño" runat="server" 
                                                                  CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                                                  CssPostfix="Office2010Blue" Spacing="0" 
                                                                  SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Width="100px">
                                                                  <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                                                                  </LoadingPanelImage>
                                                                  <LoadingPanelStyle ImageSpacing="5px">
                                                                  </LoadingPanelStyle>
                                                                  <ButtonStyle Width="20px">
                                                                  </ButtonStyle>
                                                                  <Paddings PaddingLeft="5px" />
                                                              </dx:ASPxComboBox>
                                                          </td>
                                                          <td style="width: 31px">
                                                              <asp:Label ID="Label2" runat="server" ForeColor="Black" Text="Mes:"></asp:Label>
                                                          </td>
                                                          <td width="105">
                                                              <dx:ASPxComboBox ID="cboMes" runat="server" 
                                                                  CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                                                  CssPostfix="Office2010Blue" SelectedIndex="0" Spacing="0" 
                                                                  SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Width="100px">
                                                                  <Items>
                                                                      <dx:ListEditItem Selected="True" Text="Enero" Value="1" />
                                                                      <dx:ListEditItem Text="Febrero" Value="2" />
                                                                      <dx:ListEditItem Text="Marzo" Value="3" />
                                                                      <dx:ListEditItem Text="Abril" Value="4" />
                                                                      <dx:ListEditItem Text="Mayo" Value="5" />
                                                                      <dx:ListEditItem Text="Junio" Value="6" />
                                                                      <dx:ListEditItem Text="Julio" Value="7" />
                                                                      <dx:ListEditItem Text="Agosto" Value="8" />
                                                                      <dx:ListEditItem Text="Setiembre" Value="9" />
                                                                      <dx:ListEditItem Text="Octubre" Value="10" />
                                                                      <dx:ListEditItem Text="Noviembre" Value="11" />
                                                                      <dx:ListEditItem Text="Diciembre" Value="12" />
                                                                  </Items>
                                                                  <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                                                                  </LoadingPanelImage>
                                                                  <LoadingPanelStyle ImageSpacing="5px">
                                                                  </LoadingPanelStyle>
                                                                  <ButtonStyle Width="20px">
                                                                  </ButtonStyle>
                                                                  <Paddings PaddingLeft="5px" />
                                                              </dx:ASPxComboBox>
                                                          </td>
                                                          <td style="width: 44px">
                                                              <asp:Label ID="Label5" runat="server" ForeColor="Black" Text="Marca:"></asp:Label>
                                                          </td>
                                                          <td align="left">
                                                              <dx:ASPxComboBox ID="cboMarca" runat="server" 
                                                                  CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                                                  CssPostfix="Office2010Blue" Spacing="0" 
                                                                  SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Width="150px">
                                                                  <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                                                                  </LoadingPanelImage>
                                                                  <LoadingPanelStyle ImageSpacing="5px">
                                                                  </LoadingPanelStyle>
                                                                  <ButtonStyle Width="20px">
                                                                  </ButtonStyle>
                                                                  <Paddings PaddingLeft="5px" />
                                                              </dx:ASPxComboBox>
                                                          </td>
                                                      </tr>
                                                  </table>
                                              </dx:PanelContent>
                                          </PanelCollection>
                                      </dx:ASPxRoundPanel>
                                        <dx:ASPxPivotGrid ID="pv" runat="server" 
        ClientIDMode="AutoID" Width="800px" 
                          ClientInstanceName="PivotGrid" style="margin-right: 1px">
                          <Fields>
                              <dx:PivotGridField ID="fieldcant" Area="DataArea" AreaIndex="0" 
                                  Caption="Cantidad" FieldName="cant" GroupInterval="Custom" 
                                  UnboundFieldName="fieldcant" CellFormat-FormatString="{0:G}" 
                                  CellFormat-FormatType="Custom" ValueFormat-FormatString="{0:G}" 
                                  ValueFormat-FormatType="Custom">
                              </dx:PivotGridField>
                              <dx:PivotGridField ID="fieldCartera" Area="RowArea" AreaIndex="0" 
                                  Caption="Cartera" FieldName="Cartera">
                              </dx:PivotGridField>
                              <dx:PivotGridField ID="fieldSupervisor" Area="RowArea" AreaIndex="1" 
                                  Caption="Supervisor" FieldName="Supervisor">
                              </dx:PivotGridField>
                              <dx:PivotGridField ID="fieldDESLARGA" Area="ColumnArea" AreaIndex="0" 
                                  Caption="Tipo" FieldName="DES_LARGA">
                              </dx:PivotGridField>
                              <dx:PivotGridField ID="fieldIDVENDEDOR" Area="RowArea" AreaIndex="2" 
                                  Caption="ID" ExpandedInFieldsGroup="False" ExportBestFit="False" 
                                  FieldName="ID_VENDEDOR" KPIGraphic="None" SortMode="None" 
                                  TotalsVisibility="None" Width="20">
                                  <CellStyle ForeColor="#E4EEFA">
                                  </CellStyle>
                                  <HeaderStyle ForeColor="#E4EEFA" />
                                  <ValueStyle ForeColor="#E4EEFA">
                                  </ValueStyle>
                                  <ValueTotalStyle ForeColor="#E4EEFA">
                                  </ValueTotalStyle>
                              </dx:PivotGridField>
                          </Fields>
                          <OptionsView ShowColumnGrandTotalHeader="False" ShowColumnGrandTotals="False" 
                              ShowRowGrandTotalHeader="False" />

<OptionsView ShowColumnGrandTotals="False" ShowColumnGrandTotalHeader="False" 
                              ShowRowGrandTotalHeader="False" showfilterheaders="False"></OptionsView>

                          <OptionsPager Position="Bottom" Visible="False">
                          </OptionsPager>
                          <OptionsLoadingPanel>
                              <Image Url="~/App_Themes/Office2010Blue/PivotGrid/Loading.gif">
                              </Image>
                              <Style ImageSpacing="5px">
                              </Style>
                          </OptionsLoadingPanel>
                          <Images SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                              <CustomizationFieldsBackground Url="~/App_Themes/Office2010Blue/PivotGrid/pcHBack.png">
                              </CustomizationFieldsBackground>
                              <LoadingPanel Url="~/App_Themes/Office2010Blue/PivotGrid/Loading.gif">
                              </LoadingPanel>
                          </Images>
                          <Styles CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                              CssPostfix="Office2010Blue">
                              <LoadingPanel ImageSpacing="5px">
                              </LoadingPanel>
                          </Styles>
                          <StylesPager>
                              <PageNumber ForeColor="#3E4846">
                              </PageNumber>
                              <Summary ForeColor="#1E395B">
                              </Summary>
                          </StylesPager>
                          <StylesEditors ButtonEditCellSpacing="0">
                          </StylesEditors>
                      </dx:ASPxPivotGrid>

                                  </td>
                                  <td valign="top">
                                      <dx:ASPxRoundPanel ID="ASPxRoundPanel2" runat="server" 
                                          CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                          CssPostfix="Office2010Blue" EnableDefaultAppearance="False" 
                                          GroupBoxCaptionOffsetX="6px" GroupBoxCaptionOffsetY="-19px" 
                                          HeaderText="Filtros" 
                                          SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Width="800px">
                                          <ContentPaddings PaddingBottom="10px" PaddingLeft="9px" PaddingRight="11px" 
                                              PaddingTop="10px" />
                                          <HeaderStyle>
                                          <Paddings PaddingBottom="6px" PaddingLeft="9px" PaddingRight="11px" 
                                              PaddingTop="3px" />
                                          </HeaderStyle>
                                          <PanelCollection>
                                              <dx:PanelContent runat="server" SupportsDisabledAttribute="True">
                                                  <table border="0" cellpadding="5" cellspacing="0" width="100%">
                                                      <tr>
                                                          <td style="width: 33px">
                                                              <asp:Label ID="Label6" runat="server" ForeColor="Black" Text="Año:"></asp:Label>
                                                          </td>
                                                          <td width="110">
                                                              <dx:ASPxComboBox ID="cboAño0" runat="server" 
                                                                  CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                                                  CssPostfix="Office2010Blue" Spacing="0" 
                                                                  SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Width="100px">
                                                                  <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                                                                  </LoadingPanelImage>
                                                                  <LoadingPanelStyle ImageSpacing="5px">
                                                                  </LoadingPanelStyle>
                                                                  <ButtonStyle Width="20px">
                                                                  </ButtonStyle>
                                                                  <Paddings PaddingLeft="5px" />
                                                              </dx:ASPxComboBox>
                                                          </td>
                                                          <td style="width: 44px">
                                                              <asp:Label ID="Label8" runat="server" ForeColor="Black" Text="Marca:"></asp:Label>
                                                          </td>
                                                          <td align="left" width="155">
                                                              <dx:ASPxComboBox ID="cboMarca0" runat="server" 
                                                                  CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                                                  CssPostfix="Office2010Blue" Spacing="0" 
                                                                  SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Width="150px">
                                                                  <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                                                                  </LoadingPanelImage>
                                                                  <LoadingPanelStyle ImageSpacing="5px">
                                                                  </LoadingPanelStyle>
                                                                  <ButtonStyle Width="20px">
                                                                  </ButtonStyle>
                                                                  <Paddings PaddingLeft="5px" />
                                                              </dx:ASPxComboBox>
                                                          </td>
                                                          <td align="left">
                                                              <asp:Label ID="Label9" runat="server" Font-Bold="True" Text="5 Venta Real"></asp:Label>
                                                          </td>
                                                      </tr>
                                                  </table>
                                              </dx:PanelContent>
                                          </PanelCollection>
                                      </dx:ASPxRoundPanel>


                                      <dx:ASPxPivotGrid ID="pv0" runat="server" ClientIDMode="AutoID" 
                                          ClientInstanceName="PivotGrid0" Width="800px">
                                          <Fields>
                                              <dx:PivotGridField ID="fieldcant0" Area="DataArea" AreaIndex="0" 
                                                  Caption="Cantidad" FieldName="cant" CellFormat-FormatString="{0:G}" 
                                                  CellFormat-FormatType="Custom" ValueFormat-FormatString="{0:G}" 
                                                  ValueFormat-FormatType="Custom">
                                              </dx:PivotGridField>
                                              <dx:PivotGridField ID="fieldCartera0" Area="RowArea" AreaIndex="0" 
                                                  Caption="Cartera" FieldName="Cartera">
                                              </dx:PivotGridField>
                                              <dx:PivotGridField ID="fieldSupervisor0" Area="RowArea" AreaIndex="1" 
                                                  Caption="Supervisor" FieldName="Supervisor">
                                              </dx:PivotGridField>
                                              <dx:PivotGridField ID="fieldnummes" Area="ColumnArea" AreaIndex="0" 
                                                  Caption="Mes" FieldName="num_mes">
                                              </dx:PivotGridField>
                                          </Fields>
                                          <OptionsView 
                                              ShowRowGrandTotalHeader="False" />
                                          <OptionsView ShowColumnGrandTotalHeader="True" ShowColumnGrandTotals="True" 
                                              showfilterheaders="False" ShowRowGrandTotalHeader="False" />
                                          <OptionsPager Position="Bottom" Visible="False">
                                          </OptionsPager>
                                          <OptionsLoadingPanel>
                                              <Image Url="~/App_Themes/Office2010Blue/PivotGrid/Loading.gif">
                                              </Image>
                                              <Style ImageSpacing="5px">
                                              </Style>
                                          </OptionsLoadingPanel>
                                          <Images SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                              <CustomizationFieldsBackground Url="~/App_Themes/Office2010Blue/PivotGrid/pcHBack.png">
                                              </CustomizationFieldsBackground>
                                              <LoadingPanel Url="~/App_Themes/Office2010Blue/PivotGrid/Loading.gif">
                                              </LoadingPanel>
                                          </Images>
                                          <Styles CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                              CssPostfix="Office2010Blue">
                                              <LoadingPanel ImageSpacing="5px">
                                              </LoadingPanel>
                                          </Styles>
                                          <StylesPager>
                                              <PageNumber ForeColor="#3E4846">
                                              </PageNumber>
                                              <Summary ForeColor="#1E395B">
                                              </Summary>
                                          </StylesPager>
                                          <StylesEditors ButtonEditCellSpacing="0">
                                          </StylesEditors>
                                      </dx:ASPxPivotGrid>
                                  </td>
                              </tr>
                          </table>
                    


   </div>

                      </asp:Content>
